package com.hymjweb.demo.hymj.system_maintenance.role_permission.bean;

import lombok.Data;

import java.util.Objects;

/**
 * @BelongsProject: demo
 * @BelongsPackage: com.hymjweb.demo.hymj.system_maintenance.role_permission.bean
 * @Author: luoge
 * @CreateTime: 2021-03-23 18:46
 * @Description:
 */

@Data
public class RolePermissionPojo {

    private String id;

    private String roleId;

    private String permissionId;

    private Long resourceTypeId;


    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        RolePermissionPojo that = (RolePermissionPojo) o;
        return id.equals(that.id) &&
                roleId.equals(that.roleId) &&
                permissionId.equals(that.permissionId) &&
                resourceTypeId.equals(that.resourceTypeId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, roleId, permissionId, resourceTypeId);
    }
}
